<div class="page-body">

    <div class="row">
        <div class="col-xs-12 col-md-12">
            <div class="widget">
                <div class="widget-header ">
                    <span class="widget-caption">活动退款</span>
                    <div class="widget-buttons">
                        <a href="#" data-toggle="maximize">
                            <i class="fa fa-expand"></i>
                        </a>
                        <a href="#" data-toggle="collapse">
                            <i class="fa fa-minus"></i>
                        </a>
                        <a href="#" data-toggle="dispose">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="widget-body">
                    <div class="table-toolbar">
                        <!--<form method="get" action="{:U('index')}" class="form-inline" role="form">-->
                            <!--<div class="form-group">-->
                            <!--<span class="input-icon" style="width: 200px;">-->
                                <!--<input type="text" class="form-control input-sm" placeholder="活动名"-->
                                       <!--name="keywords" value="{$Think.get.keywords}">-->
                                <!--<i class="glyphicon glyphicon-search blue"></i>-->
                            <!--</span>-->
                            <!--</div>-->
                            <!--<button type="submit" class="btn btn-info">搜索</button>-->

                            <!--<a href="{:U('export')}" class="btn btn-danger">活动列表导出</a>-->
                        <!--</form>-->
                    </div>
                    <table class="table table-striped table-hover">
                        <thead>
                        <tr>
                            <th>ID</th>
                            <th>活动名</th>
                            <th>时间信息</th>
                            <th>人数/费用/{:C('act_freenum_name')}</th>
                            <th>会员卡</th>
                            <th>退款信息</th>
                            <th>操作</th>
                        </tr>
                        </thead>

                        <tbody>
                        <foreach name="data" item="v">
                            <tr>
                                <td>
                                    {$v.activity_id}
                                </td>
                                <td>
                                    {$v.title}
                                    <br>
                                    <empty  name="v.a_logo">
                                        暂无图片
                                        <else/>
                                        <img src="{$v.a_logo}" width="100">
                                    </empty >
                                </td>
                                <td>
                                    报名时间<br>
                                    开始：{$v.apply_start}<br>
                                    结束：{$v.apply_end}<br><br>
                                    活动时间<br>
                                    开始：{$v.activity_start}<br>
                                    结束：{$v.activity_end}
                                </td>
                                <td>
                                    人数：<br>
                                    剩余：{$v.apply_num}<br>
                                    总计：{$v.apply_total}<br><br>
                                    费用：<br>
                                    报名费：{$v.price_apply}<br>
                                    材料费：{$v.price_material}<br><br>
                                    {:C('act_freenum_name')}：<br>
                                    {$v.num_deduct}
                                </td>
                                <td>
                                    {$v.card_id}
                                </td>
                                <td>
                                    应付款：{$v.money}元<br>
                                    实付款：{$v.money_real}元
                                </td>


                                <td align="center">

                                    <switch name="v.status" >
                                        <case value="-1">取消</case>
                                        <case value="0">
                                            申请退款<br><br>
                                            <a class="btn btn-danger btn-xs action-btn" href="javascript:;" data-href="{:U('refuse',array('apply_id'=>$v['apply_id']))}">
                                                拒绝退款
                                            </a>
                                            <a class="btn btn-info btn-xs action-btn" href="javascript:;" data-href="{:U('agreed',array('apply_id'=>$v['apply_id']))}">
                                                同意退款
                                            </a>
                                        </case>
                                        <case value="1">退款成功</case>
                                        <case value="2">退款失败</case>
                                        <case value="3">拒绝退款</case>
                                        <default />
                                    </switch>


                                </td>
                            </tr>
                        </foreach>
                        </tbody>
                    </table>
                    {$page}
                    <form class="form-inline" method="post">
                        <div class="form-group">
                            <div class="input-group">
                                <div class="input-group-addon">设置页码</div>
                                <input class="form-control" type="text" placeholder="" name="p" value="{$Think.get.p}" style="width: 60px;">
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>